From: Glenn Morris Date: Wed, 18 Jan 2012 00:08:05 +0000 (-0500) Subject: * lisp/dired.el (dired-build-subdir-alist): Restrict previous change. X-Git-Tag: archive/raspbian/1%29.2+1-2+rpi1~1^2~324^2~1161 X-Git-Url: https://dgit.raspbian.org/%22http:/www.example.com/cgi/%22https:/www.github.com/%22bookmarks:///%22http:/www.example.com/cgi/%22https:/www.github.com/%22bookmarks:/?a=commitdiff_plain;h=f34dc85b9d8ae420af04a51b7a928be092695431;p=emacs.git * lisp/dired.el (dired-build-subdir-alist): Restrict previous change. (to only file names containing "\"s) --- diff --git a/lisp/dired.el b/lisp/dired.el index 34fb651db10..733e522a9aa 100644 --- a/lisp/dired.el +++ b/lisp/dired.el @@ -2558,7 +2558,8 @@ instead of `dired-actual-switches'." (setq count (1+ count)) ;; Undo any escaping of newlines and \ by dired-insert-directory. ;; Convert "n" preceded by odd number of \ to newline, and \\ to \. - (when (dired-switches-escape-p switches) + (when (and (dired-switches-escape-p switches) + (string-match "\\\\" new-dir-name)) (let (temp res) (mapc (lambda (char) (cond ((equal char ?\\)